using System;
namespace Client.Hotfix
{
    public static class HttpExtensions
    {
        public static void Get(this HttpRequest request, Action<HttpResponse> callback)
        {
            UGF.Instance.Resolve<HttpService>().Get(request, callback);
        }

        // POST请求
        public static void Post(this HttpRequest request, Action<HttpResponse> callback)
        {
            UGF.Instance.Resolve<HttpService>().Post(request, callback);
        }

        // PUT请求
        public static void Put(this HttpRequest request, Action<HttpResponse> callback)
        {
            UGF.Instance.Resolve<HttpService>().Put(request, callback);
        }

    }

}
